-
Notifications
You must be signed in to change notification settings - Fork 684
Documentation update #1573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation update #1573
Conversation
docs/01.GETTING-STARTED.md
Outdated
**Change default heap size (512K)** | ||
|
||
```bash | ||
python tools/build.py --mem-heap=256K |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just --mem-heap=256
, this option accepts integers.
docs/01.GETTING-STARTED.md
Outdated
If you would like to use more than 512K, then you must enable the 32 bit compressed pointers. | ||
|
||
```bash | ||
python tools/build.py --cpointer-32bit=on --mem-heap=1024K |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--mem-heap=1024
**Use system memory allocator** | ||
|
||
```bash | ||
python tools/build.py --system-allocator=on --jerry-libc=off |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to add --compile-flag=-m32
to the command or add some hints about how to build to 32bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzsolt, this is why I wrote a note. :)
docs/01.GETTING-STARTED.md
Outdated
python tools/build.py --cpointer-32bit=on --mem-heap=1024K | ||
``` | ||
|
||
*Note*: Memory allocator of JerryScript will allocate the full heap, when the engine starts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't completely correct, as our memory allocator has no responsibility to allocate the heap. The heap will be allocated statically at compile time.
docs/02.API-REFERENCE.md
Outdated
if the value parameter is not a string or the buffer is | ||
not large enough for the whole string. | ||
Copy the characters of a string into a specified cesu-8 buffer. | ||
The '\0' character could occur in character buffer. Returns 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
e702ccb
to
d1cbb8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]